<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<input type="hidden" name="requestNo" value="${selectServiceRequestViewByNo.requestNo }">
	<h3>복무신청 상세내역</h3>
	<table cellpadding="3"cellspacing="0" >
		<tr>
			<th bgcolor="lightgray">신청자</th>
			<td>${selectServiceRequestViewByNo.name }</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">종별</th>
			<td>${selectServiceRequestViewByNo.jongbyul }</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">사용기간</th>
			<td>
				<fmt:formatDate var ="strStartDate" value="${selectServiceRequestViewByNo.calendarStart }" type="date" pattern="yyyy-MM-dd"/>
				<fmt:formatDate var ="strEndDate" value="${selectServiceRequestViewByNo.calendarEnd }" type="date" pattern="yyyy-MM-dd"/>
				<c:out value="${strStartDate} ~ ${strEndDate }"/>
			</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">사용시간</th>
			<td>${selectServiceRequestViewByNo.timeStart } ~ ${selectServiceRequestViewByNo.timeEnd }</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">사유</th>
			<td>${selectServiceRequestViewByNo.sau }</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">비고</th>
			<td>${selectServiceRequestViewByNo.bigo }</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">결재자</th>
			<td>${selectServiceRequestViewByNo.approName }</td>
		</tr>
		<tr>
			<th  bgcolor="lightgray">첨부파일</th>
			<td>
				<c:choose>
					<c:when test="${empty imageUrl }">
						이미지없음.
					</c:when>
					<c:otherwise>
						<img alt="image" width="700" src="${imageUrl }" style="width: 300px; height: 300px; ">
					</c:otherwise>
				</c:choose>
			</td>
		</tr>						
	</table><br>
	<div align="right" style="padding-right: 20px">
	<input type="button" onclick="location.href='/${initParam.context_root }/typeOneList.do'" value="전체보기">
	</div>
</body>
</html>